<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title><?php echo $headConf['title']?></title>
    <link rel="icon" type="text/css" href="../../../Public/Home/icon.ico" />
    <link rel="stylesheet" type="text/css" href="/c73/php_beijing/mall/Public/Home/css/index.css" />
    <!--用js变量存储购物车异步请求地址-->
    <script>
        var ajaxUpdateCart = "<?php echo u('cart/ajaxUpdateCart');?>";
    </script>
    <script src="/c73/php_beijing/mall/Public/Home/js/jquery-1.10.1.min.js" type="text/javascript" charset="utf-8"></script>
    <script src="/c73/php_beijing/mall/Public/Home/layer/layer.js"></script>
    <?php foreach($headConf['js'] as $k=>$v){ ?>
    <script src="/c73/php_beijing/mall/Public/Home/js/<?php echo $v ?>.js" type="text/javascript" charset="utf-8"></script>
    <?php } ?>
</head>

<body>
<!--头部开始-->
<div id="top">
    <!--头部灰条就开始-->
    <div class="topbox">
        <div class="main">
            <div class="topleft fl">
                <a href="javascript:;">欢迎来到冰雨商城</a>
                <a href="#">设为首页</a>
                <a href="#">收藏本站</a>
                <a href="#">帮助中心</a>
                <a href="#" class='last'><i></i>手机商城</a>
            </div>
            <div class="topright fr">
                <div class="login fl">
                    <a href="#">登录</a>
                    <a href="#">注册</a>
                </div>
                <span class="fl">|</span>
                <div class="fcode fl">

                    <a href="">我的订单</a>
                </div>
            </div>
        </div>
    </div>
    <!--头部灰条结束-->

    <!--logo区域开始-->
    <div class="logoRegion">
        <div class="main">
            <div class="logo">
                <a href=""><img src="/c73/php_beijing/mall/Public/Home/images/360logo.png"/></a>
            </div>
            <div class="seachRegion">
                <div class="seach fl">
                    <form action="" method="post">
                        <input type="text" class="seachtxt fl" value="O2+车载空气净化" />
                        <input type="submit" class="btn" value="" />
                    </form>
                    <p class="searchkey">
                        <a href="">电竞配件低至5折</a>
                        <a href="">电竞配件低至5折</a>
                        <a href="">电竞配件低至5折</a>
                    </p>

                </div>
                <div class="topshopcart fr">
                    <a href="" class="header-cart"><i></i>我的购物车<span class="cart-size">(0)</span></a>
                    <div class="cart-tips">
                        请
                        <a href="">登录</a>后查看您的购物车。
                    </div>
                </div>
            </div>

        </div>
    </div>
    <!--logo区域结束-->
    <!--导航开始-->
    <div class="navbox">
        <div class="main">
            <h5 class="fl"><a href=""><i></i>全部智能酷品</a></h5>
            <ul class="menu fl">
                <li class="menulist">
                    <a href="list.html">手机</a>
                    <div class="menuHiden">

                        <ul class="product">

                            <li>
                                <a href=""><img src="/c73/php_beijing/mall/Public/Home/images/right.png" alt="" /></li>
                            <li><img src="/c73/php_beijing/mall/Public/Home/images/right.png" alt="" /></a>
                            </li>
                            <li>
                                <a href=""><img src="/c73/php_beijing/mall/Public/Home/images/right.png" alt="" /></li>
                            <li><img src="/c73/php_beijing/mall/Public/Home/images/right.png" alt="" /></a>
                            </li>
                            <li>
                                <a href=""><img src="/c73/php_beijing/mall/Public/Home/images/right.png" alt="" /></li>
                            <li><img src="/c73/php_beijing/mall/Public/Home/images/right.png" alt="" /></a>
                            </li>

                        </ul>

                    </div>
                </li>

            </ul>

        </div>


        
</div>
<!--导航结束-->
<div class="clear"></div>

</div>
<!--头部结束-->
<!--中间开始-->
<div id="content">
	<div class="cont">
		<div class="main">
			<div class="content-left">
				<div class="box">
					<div class="zhezhao"></div>
					<div class="sekuai"></div>
					<div class="smallTu"></div>
					<a href="javascript:;" class="shang">&lt;</a>
					<div class="list1">
						<ul>
							<?php if(is_array($goodsData['medium_pic'])): $i = 0; $__LIST__ = $goodsData['medium_pic'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?><li><img src="/c73/php_beijing/mall/<?php echo ($v); ?>" alt=""></li><?php endforeach; endif; else: echo "" ;endif; ?>
						</ul>
					</div>
					<a href="javascript:;" class="xia">&gt;</a>

					<div class="bgTu"></div>
					<div class="bgTuHide">
						<ul>
							<?php if(is_array($goodsData['big_pic'])): $i = 0; $__LIST__ = $goodsData['big_pic'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?><li><img src="/c73/php_beijing/mall/<?php echo ($v); ?>" alt=""></li><?php endforeach; endif; else: echo "" ;endif; ?>
						</ul>

					</div>
				</div>
			</div>
			<div class="content-right">

				<div class="tit"><?php echo ($goodsData['gname']); ?></div>
				<div class="description">安全三系统 6GB内存+128GB存储 高通骁龙820芯片 智慧双摄2.0 银行级安全芯片 360OS 2.0 QC闪充3.0</div>
				<div class="pirve"><?php echo ($goodsData['shopprice']); ?></div>


				<?php if(is_array($specData)): foreach($specData as $k=>$v): ?><div class="category">
						<h4><?php echo ($k); ?></h4>
						<ul>
							<?php if(is_array($v)): foreach($v as $kk=>$vv): ?><li gaid="<?php echo ($vv['gaid']); ?>" specName="<?php echo ($k); ?>"><?php echo ($vv['gavalue']); ?></li><?php endforeach; endif; ?>
						</ul>
					</div><?php endforeach; endif; ?>
				<script>
					$(function(){
//					    当规格都被选中时，异步获取库存
					    $(".category li").click(function(){
//					        判断是否每个规格都被选中
							if($('.category .zhong').length != $('.category').length){
							    return false;
							}
					        var gid = <?php echo ($_GET['gid']); ?>;
					        var combine='';
					        $('.category .zhong').each(function(k,v){
					            combine+= $(this).attr('gaid')+',';
							});
					        $.post("<?php echo U('ajaxGetTotal');?>",{gid:gid,combine:combine},function(res){
								if(res){
//								    有库存
                                    $('.goodsTotal').html('库存为：'+res);
                                    $('.nobdr h6').addClass('allow').removeClass('disabled');
                                }else{
//								    没有库存
                                    $('.goodsTotal').html('库存为：0');
                                    $('.nobdr h6').addClass('disabled').removeClass('allow');
                                }
							},'json');

						})
					})
				</script>
				<div class="num">
					<h5>数量</h5>
					<a href="javascript:;" class="num_l">-</a>
					<input id="total" type="text" value="1" />
					<a href="javascript:;" class="num_r">+</a>
					<span class="goodsTotal" style="margin-left: 2em; line-height: 2em;">库存为：0</span>
				</div>
				<style>
					.allow{
						background: #fa5437;
					}
					.disabled{
						background: #ccc;
					}
				</style>
				<div class="nobdr">
					<h6 class="allow"><a href="javascript:;">加入购物车</a></h6>
				</div>
				<script>
					$(function(){
//					    点击加入购物车事件
					    $(".nobdr .allow").click(function(){
							if($(this).is('.disabled')){
                                return false;
							}
//					        判断是否每个规格都被选中
                            if($('.category .zhong').length != $('.category').length){
							    layer.msg('请选择规格');
							    return false;
							}
//							需要异步到后台的数据
							var data = {
                                gid:<?php echo ($_GET['gid']); ?>,
								num:$('#total').val(),
								options:{}
							}
							$('.category .zhong').each(function(){
								data['options'][$(this).attr('specName')] = $(this).text();
							});
							$.post("<?php echo u('ajaxAddToCart');?>",data,function(res){
								location.href="<?php echo u('Cart/index');?>";
							},'json');
						})
					})
				</script>
				<div class="houdun">
					<h3>保障</h3>
					<p><i class="o1"></i>360商城发货&售后</p>
					<p><i class="o2"></i>满99元包邮</p>
					<p><i class="o3"></i>7天无理由退货</p>
					<p><i class="o4"></i>15天免费换货</p>
				</div>
			</div>
		</div>
	</div>
	<div class="desc" id="xijie">
		<div class="desctab" >
			<div class="main">
				<ul>
					<li><a href="#xijie">产品详情</a><span>|</span></li>
					<li><a href="#guige">规格参数</a><span>|</span></li>
					<li><a href="#wenti">常见问题</a></li>
				</ul>
			</div>
		</div>
		<div class="con">
			<?php echo ($goodsData['intro']); ?>
			<!--<img src="/c73/php_beijing/mall/Public/Home/images/t0159dae288111b9b39.jpg" />-->
			<!--<img src="/c73/php_beijing/mall/Public/Home/images/t0159dae288111b9b39.jpg" />-->
			<!--<img src="/c73/php_beijing/mall/Public/Home/images/t0159dae288111b9b39.jpg" />-->
			<!--<img src="/c73/php_beijing/mall/Public/Home/images/t0159dae288111b9b39.jpg" />-->
			<!--<img src="/c73/php_beijing/mall/Public/Home/images/t0159dae288111b9b39.jpg" />-->
		</div>
		<div class="con main" id="guige">
			<h1>产品参数</h1>
			<table cellpadding="0" cellspacing="0" border="1">
				<tbody>
				<tr>
					<td class="wd207" colspan="2">主体</td>
				</tr>
				<tr>
					<td class="wd207">品牌</td>
					<td>360手机</td>
				</tr>
				<tr>
					<td class="wd207">型号</td>
					<td>1509-A00（Q5 Plus)</td>
				</tr>
				<tr>
					<td class="wd207">上市时间</td>
					<td>2016年8月</td>
				</tr>
				<tr>
					<td class="wd207" colspan="2">基本信息</td>
				</tr>
				<tr>
					<td class="wd207">机身颜色</td>
					<td>流光金</td>
				</tr>
				<tr>
					<td class="wd207">机身尺寸（mm）</td>
					<td>156.5*80*8.3</td>
				</tr>
				<tr>
					<td class="wd207">机身重量（g）</td>
					<td>175.0g</td>
				</tr>
				<tr>
					<td class="wd207" colspan="2">操作系统</td>
				</tr>
				<tr>
					<td class="wd207">操作系统</td>
					<td>360 OS Android 6.0</td>
				</tr>
				<tr>
					<td class="wd207" colspan="2">主芯片</td>
				</tr>
				<tr>
					<td class="wd207">CPU型号</td>
					<td>骁龙820</td>
				</tr>
				<tr>
					<td class="wd207">CPU频率</td>
					<td>Kryo 2.15GHz x 4</td>
				</tr>
				<tr>
					<td class="wd207" colspan="2">网络支持</td>
				</tr>
				<tr>
					<td class="wd207">双卡机类型</td>
					<td>双卡双待单通</td>
				</tr>
				<tr>
					<td class="wd207">SIM卡类型</td>
					<td>Nano SIM</td>
				</tr>
				<tr>
					<td class="wd207">网络制式</td>
					<td>全网通</td>
				</tr>
				<tr>
					<td class="wd207" colspan="2">存储</td>
				</tr>
				<tr>
					<td class="wd207">ROM</td>
					<td>128GB UFS2.0 机身存储</td>
				</tr>
				<tr>
					<td class="wd207">RAM</td>
					<td>4GB LPDDR4 双通道内存</td>
				</tr>
				<tr>
					<td class="wd207">存储卡</td>
					<td>支持MicroSD（TF）</td>
				</tr>
				<tr>
					<td class="wd207" colspan="2">屏幕</td>
				</tr>
				<tr>
					<td class="wd207">主屏幕尺寸（英寸）</td>
					<td>6.0英寸</td>
				</tr>
				<tr>
					<td class="wd207">分辨率</td>
					<td>1920*1080(FHD)</td>
				</tr>
				<tr>
					<td class="wd207">屏幕材质类型</td>
					<td>三星（SAMSUNG）Super AMOLED</td>
				</tr>
				<tr>
					<td class="wd207">屏幕色彩</td>
					<td>1600万</td>
				</tr>
				<tr>
					<td class="wd207" colspan="2">前置摄像头</td>
				</tr>
				<tr>
					<td class="wd207">前置摄像头</td>
					<td>1300万像素</td>
				</tr>
				<tr>
					<td class="wd207">前摄光圈大小</td>
					<td>f/2.0</td>
				</tr>
				<tr>
					<td class="wd207">美颜技术</td>
					<td>支持</td>
				</tr>
				<tr>
					<td class="wd207">拍照特点</td>
					<td>美颜</td>
				</tr>
				<tr>
					<td class="wd207" colspan="2">后置摄像头</td>
				</tr>
				<tr>
					<td class="wd207">后置摄像头</td>
					<td>双1300万像素</td>
				</tr>
				<tr>
					<td class="wd207">摄像头光圈大小</td>
					<td>f/2.0</td>
				</tr>
				<tr>
					<td class="wd207">闪光灯</td>
					<td>LED灯</td>
				</tr>
				<tr>
					<td class="wd207">美颜技术</td>
					<td>支持</td>
				</tr>
				<tr>
					<td class="wd207" colspan="2">电池信息</td>
				</tr>
				<tr>
					<td class="wd207">电池容量（mAh）</td>
					<td>3700</td>
				</tr>
				<tr>
					<td class="wd207">电池是否可拆卸</td>
					<td>否</td>
				</tr>
				<tr>
					<td class="wd207">闪充</td>
					<td>支持QC3.0涡轮闪充</td>
				</tr>
				<tr>
					<td class="wd207" colspan="2">娱乐功能</td>
				</tr>
				<tr>
					<td class="wd207">mic数量</td>
					<td>2个</td>
				</tr>
				<tr>
					<td class="wd207">喇叭数量</td>
					<td>1个</td>
				</tr>
				<tr>
					<td class="wd207" colspan="2">数据接口</td>
				</tr>
				<tr>
					<td class="wd207">数据传输接口</td>
					<td>WIFI、蓝牙、WiFi热点、OTG接口</td>
				</tr>
				<tr>
					<td class="wd207">NFC/NFC模式</td>
					<td>不支持</td>
				</tr>
				<tr>
					<td class="wd207">耳机接口类型</td>
					<td>3.5mm</td>
				</tr>
				<tr>
					<td class="wd207">充电接口类型</td>
					<td>Type-C</td>
				</tr>
				<tr>
					<td class="wd207" colspan="2">手机特性</td>
				</tr>
				<tr>
					<td class="wd207">指纹识别</td>
					<td>支持</td>
				</tr>
				<tr>
					<td class="wd207">GPS</td>
					<td>支持</td>
				</tr>
				<tr>
					<td class="wd207">电子罗盘</td>
					<td>支持</td>
				</tr>
				<tr>
					<td class="wd207">霍尔感应器</td>
					<td>支持</td>
				</tr>
				<tr>
					<td class="wd207">陀螺仪</td>
					<td>支持</td>
				</tr>
				<tr>
					<td class="wd207">其他</td>
					<td>距离感应、呼吸灯、光线感应</td>
				</tr>
				</tbody>
			</table>
		</div>
		<div class="con main" id="wenti">
			<h2>常见问题</h2>
			<dl>
				<dt><i>1、</i><em></em>订单提交成功后还可以修改收货信息吗？</dt>
				<dd><u></u>订单付款之前，您可以进入“我的订单”，在订单详情页内修改收货信息。付款之后将不可修改收货信息。</dd>
			</dl>
			<dl>
				<dt><i>2、</i><em></em>订单提交成功后还可以修改收货信息吗？</dt>
				<dd><u></u>订单付款之前，您可以进入“我的订单”，在订单详情页内修改收货信息。付款之后将不可修改收货信息。</dd>
			</dl>
			<dl>
				<dt><i>3、</i><em></em>订单提交成功后还可以修改收货信息吗？</dt>
				<dd><u></u>订单付款之前，您可以进入“我的订单”，在订单详情页内修改收货信息。付款之后将不可修改收货信息。</dd>
			</dl>
			<dl>
				<dt><i>4、</i><em></em>订单提交成功后还可以修改收货信息吗？</dt>
				<dd><u></u>订单付款之前，您可以进入“我的订单”，在订单详情页内修改收货信息。付款之后将不可修改收货信息。</dd>
			</dl>
			<dl>
				<dt><i>5、</i><em></em>订单提交成功后还可以修改收货信息吗？</dt>
				<dd><u></u>订单付款之前，您可以进入“我的订单”，在订单详情页内修改收货信息。付款之后将不可修改收货信息。</dd>
			</dl>
			<dl>
				<dt><i>6、</i><em></em>订单提交成功后还可以修改收货信息吗？</dt>
				<dd><u></u>订单付款之前，您可以进入“我的订单”，在订单详情页内修改收货信息。付款之后将不可修改收货信息。</dd>
			</dl>
			<dl>
				<dt><i>7、</i><em></em>订单提交成功后还可以修改收货信息吗？</dt>
				<dd><u></u>订单付款之前，您可以进入“我的订单”，在订单详情页内修改收货信息。付款之后将不可修改收货信息。</dd>
			</dl>

		</div>
	</div>

</div>
</div>
<!--中间结束-->



        <!--尾部开始-->
        <div class="mod-footer">
            <div class="foot-bannerw">
                <div class="foot-banner clearfix">
                    <div class="banner-item">
                        <a href="#" target="_blank" data-monitor="home_foot_days7"><i class="icon1">7</i>7天无理由退货</a>
                    </div>
                    <div class="banner-item">
                        <a href="#" target="_blank" data-monitor="home_foot_days15"><i class="icon2">15</i>15天免费换货</a>
                    </div>
                    <div class="banner-item"><i class="icon3">包</i>满99元包邮</div>
                    <div class="banner-item">
                        <a href="#" target="_blank" data-monitor="home_foot_moblie"><i class="icon4">服</i>手机特色服务</a>
                    </div>
                </div>
            </div>
            <div class="foot-containerw">
                <div class="foot-container clearfix">
                    <dl class="foot-con"> <dt data-monitor="home_foot_freshman">帮助中心 </dt>
                        <dd data-monitor="home_help_freshman">
                            <a target="_blank" href="#" rel="nofollow">用户注册</a>
                        </dd>
                        <dd>
                            <a target="_blank" href="#" rel="nofollow">用户登录与密码找回</a>
                        </dd>
                        <dd>
                            <a target="_blank" href="#" rel="nofollow">购买指南</a>
                        </dd>
                        <dd>
                            <a target="_blank" href="#" rel="nofollow">支付方式</a>
                        </dd>
                        <dd>
                            <a target="_blank" href="#" rel="nofollow">配送与说明</a>
                        </dd>
                    </dl>
                    <dl class="foot-con"> <dt data-monitor="home_foot_help">售后服务 </dt>
                        <dd data-monitor="home_help_help">
                            <a target="_blank" href="#">7 日无理由退货</a>
                        </dd>
                        <dd>
                            <a target="_blank" href="#" rel="nofollow">质量问题 15 日内换货</a>
                        </dd>
                        <dd>
                            <a target="_blank" href="#" rel="nofollow">保修条款</a>
                        </dd>
                        <dd>
                            <a target="_blank" href="#" rel="nofollow">服务流程</a>
                        </dd>
                        <dd>
                            <a target="_blank" href="#" rel="nofollow">安迷之家</a>
                        </dd>
                    </dl>
                    <dl class="foot-con"> <dt data-monitor="home_foot_guide">特色服务 </dt>
                        <dd data-monitor="home_help_guide">
                            <a target="_blank" href="#" rel="nofollow">F码通道</a>
                        </dd>
                        <dd>
                            <a target="_blank" href="#" rel="nofollow">免费试用</a>
                        </dd>
                        <dd>
                            <a target="_blank" href="#" rel="nofollow">360 生态</a>
                        </dd>
                        <dd>
                            <a target="_blank" href="#" rel="nofollow">一元夺宝</a>
                        </dd>
                    </dl>
                    <dl class="foot-con"> <dt data-monitor="home_foot_tuiguang">推广合作 </dt>
                        <dd data-monitor="home_help_try">
                            <a target="_blank" href="#" rel="nofollow">商品入驻</a>
                        </dd>
                        <dd>
                            <a target="_blank" href="#" rel="nofollow">大客户采购</a>
                        </dd>
                    </dl>
                    <dl class="foot-con"> <dt data-monitor="home_foot_try">关注360商城 </dt>
                        <dd data-monitor="home_help_try">
                            <a target="_blank" href="#" rel="nofollow">360商城大事记</a>
                        </dd>
                    </dl>

                </div>
            </div>
            <div class="footer-copyright">冰雨商城 ©2016-2018 BYCMS工作室版权所有 京ICP备000001号-43</div>
        </div>
        <!--尾部结束-->

        <!--右边底部返回顶部-->
        <div class="slidebar" id="slidebar">
            <ul>
                <li class="topback">
                    <a href="javascript:;"></a>
                </li>
            </ul>
        </div>
        <!--右边底部返回顶部结束-->

</body>

</html>